﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D35 RID: 3381
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlayerReturnTakeRewardScRsp : IMessage<PlayerReturnTakeRewardScRsp>, IMessage, IEquatable<PlayerReturnTakeRewardScRsp>, IDeepCloneable<PlayerReturnTakeRewardScRsp>, IBufferMessage
	{
		// Token: 0x17002ACE RID: 10958
		// (get) Token: 0x0600979B RID: 38811 RVA: 0x0019437C File Offset: 0x0019257C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlayerReturnTakeRewardScRsp> Parser
		{
			get
			{
				return PlayerReturnTakeRewardScRsp._parser;
			}
		}

		// Token: 0x17002ACF RID: 10959
		// (get) Token: 0x0600979C RID: 38812 RVA: 0x00194383 File Offset: 0x00192583
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlayerReturnTakeRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002AD0 RID: 10960
		// (get) Token: 0x0600979D RID: 38813 RVA: 0x00194395 File Offset: 0x00192595
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlayerReturnTakeRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600979E RID: 38814 RVA: 0x0019439C File Offset: 0x0019259C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerReturnTakeRewardScRsp()
		{
		}

		// Token: 0x0600979F RID: 38815 RVA: 0x001943A4 File Offset: 0x001925A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerReturnTakeRewardScRsp(PlayerReturnTakeRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060097A0 RID: 38816 RVA: 0x001943C9 File Offset: 0x001925C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerReturnTakeRewardScRsp Clone()
		{
			return new PlayerReturnTakeRewardScRsp(this);
		}

		// Token: 0x17002AD1 RID: 10961
		// (get) Token: 0x060097A1 RID: 38817 RVA: 0x001943D1 File Offset: 0x001925D1
		// (set) Token: 0x060097A2 RID: 38818 RVA: 0x001943D9 File Offset: 0x001925D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060097A3 RID: 38819 RVA: 0x001943E2 File Offset: 0x001925E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlayerReturnTakeRewardScRsp);
		}

		// Token: 0x060097A4 RID: 38820 RVA: 0x001943F0 File Offset: 0x001925F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlayerReturnTakeRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060097A5 RID: 38821 RVA: 0x00194420 File Offset: 0x00192620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060097A6 RID: 38822 RVA: 0x0019445F File Offset: 0x0019265F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060097A7 RID: 38823 RVA: 0x00194467 File Offset: 0x00192667
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060097A8 RID: 38824 RVA: 0x00194470 File Offset: 0x00192670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060097A9 RID: 38825 RVA: 0x001944A4 File Offset: 0x001926A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060097AA RID: 38826 RVA: 0x001944E2 File Offset: 0x001926E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlayerReturnTakeRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060097AB RID: 38827 RVA: 0x00194513 File Offset: 0x00192713
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060097AC RID: 38828 RVA: 0x0019451C File Offset: 0x0019271C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003A21 RID: 14881
		private static readonly MessageParser<PlayerReturnTakeRewardScRsp> _parser = new MessageParser<PlayerReturnTakeRewardScRsp>(() => new PlayerReturnTakeRewardScRsp());

		// Token: 0x04003A22 RID: 14882
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003A23 RID: 14883
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04003A24 RID: 14884
		private uint retcode_;
	}
}
